﻿<?php
	$url = basename($_SERVER['PHP_SELF']);
	$class = " active";
	$pages = array("menu.php" => "menu.php", "dishdetail.php" => "dishdetail.php", "introduction.php" => "introduction.php", "recruitment.php" => "recruitment.php");
?>
<script>
	function openFacebook(){
		window.open('http://www.facebook.com/profile.php?id=100000226272556', '_blank');
	}
</script>
<div id="logo"></div>
<div id="onlineSupport" <?php if($url == $pages["introduction.php"]){echo "style=\"margin-left:-90px;\"";}?>>
    <div id="hotline">Hotline: 08 6680 6883</div>
    <div id="icon-yahoo">
        <a href='ymsgr:SendIM?officelunch.khanh'><img src='http://mail.opi.yahoo.com/online?u=officelunch.khanh&m=g&t=2'></a>
    </div>
    <div id="icon-skype">
    	<a href='ymsgr:SendIM?khanhquoc8282'><img src='http://mail.opi.yahoo.com/online?u=khanhquoc8282&m=g&t=2'></a>
    </div>
    <div id="icon-facebook">
    	<a href="javascript:openFacebook();"><img src="../img/layout/facebook-icon.png" align="center" /></a>
    </div>
</div>
<div id="banner"></div>
<div id="navigator">
    <div class="navigatorItem" value="0" onclick="navigate($(this).attr('value'));">
        TRANG CHỦ
    </div>
    <div class="navigatorItem<?php if(($url == $pages["menu.php"])||($url == $pages["dishdetail.php"])){echo $class;}else{echo "";} ?>" value="1" onclick="navigate($(this).attr('value'));">
        MENU
    </div>
    <div class="navigatorItem<?php if($url == $pages["introduction.php"]){echo $class;}else{echo "";} ?>" value="2" onclick="navigate($(this).attr('value'));">
        GIỚI THIỆU
    </div>
    <div class="navigatorItem<?php if($url == $pages["recruitment.php"]){echo $class;}else{echo "";} ?>" value="3" onclick="navigate($(this).attr('value'));">
        TUYỂN DỤNG
    </div>
    <div id="searchBox">
        <div id="searchBox-magnifier"></div>
        <div id="searchBox-body">
	    	<input type="text" id="txtSearch" name="keyword" class="searchBox" onblur="this.form.submit();"/>
        </div>
        <div id="searchBox-fist"></div>
    </div>
</div>